import request from '@/utils/request'

// 查询我的申请列表
export function listApplyTask(query) {
    return request({
        url: '/conference/applyTask/list',
        method: 'get',
        params: query
    })
}

// 查询我的申请详细
export function getApplyTask(id, taskStatus) {
    return request({
        url: `/conference/applyTask/${id}/${taskStatus}`,
        method: 'get'
    })
}

// 新增我的申请
export function addApplyTask(data) {
    return request({
        url: '/conference/applyTask',
        method: 'post',
        data: data
    })
}

// 暂存我的申请
export function stagingApplyTask(data) {
    return request({
        url: '/conference/applyTask/stagingApplyTask',
        method: 'post',
        data: data
    })
}

// 修改我的申请
export function updateApplyTask(data) {
    return request({
        url: '/conference/applyTask',
        method: 'put',
        data: data
    })
}

// 删除我的申请
export function delApplyTask(id) {
    return request({
        url: '/conference/applyTask/' + id,
        method: 'delete'
    })
}
